package com.vedu.user.dao;

import com.vedu.user.entity.po.UserPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * version: 1.0
 *
 * @author yuancheng.li [create on 2018/8/2 0:09 ]
 */
@Mapper
@Repository
public interface UserDao {


    Integer findUserId(Integer userId);

    /**
     *
     * @param po
     * @return
     */
    int insertUser(UserPo po);

    /**
     *
     * @param userName
     * @param password
     * @return
     */
    UserPo findUserByNameAndPassword(@Param("userName") String userName, @Param("password") String password);

    UserPo findUserByName(@Param("userName") String userName);

}
